package com.sfac.springboot.springboot.modules.test.service;

import com.sfac.springboot.springboot.modules.common.vo.Result;
import com.sfac.springboot.springboot.modules.common.vo.Search;
import com.sfac.springboot.springboot.modules.test.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;

import java.util.List;

/*
 * StudentService
 * */
public interface StudentService {
    Result<Student> insertStudent(Student student);

    Result<Student> updateStudent(Student student);

    Result<Object> deleteStudent(int id);

    Student getStudentById(int id);

    Page getStudentsBySearch(Search search);

    List<Student> getStudentByStudentName(String studentName);



}

